package com.taoyuan.hotel.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Department {
    private int id;
    private String deptName;
    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//接受日期参数
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//指定JSON转换的日期格式
    private Date createDate;
    private String datails;
}
